{layout name="../../admin/view/layout/main" /}
<div id="html5_uploader"></div>
<script type="text/javascript">
    $(function() {
        $("#html5_uploader").pluploadQueue({
            runtimes : 'html5',
            url : "{:url('attachment/index/upload_file')}?type={$type}&cat_id={$cat_id}",
            chunk_size : '{$chunk_size}',
            max_file_size: '{$max_file_size}',
            filters : {
                mime_types: [{title: 'Files', extensions: '{$extensions}'}]
            },
        });
        $('#html5_uploader_filelist').height(250);
    });
    </script>